<?php
defined('fADMIN') or die( 'Restricted access' );
$groups = Group::get();

echo "<table>\n".
		"<tr>".
			"<th>&nbsp;</th>";

foreach($modulesAdmin as $m){
	echo"<th>".$m->name."</th>";
}
echo "</tr>";
foreach ($groups as $g){
	echo"<tr><th>".$g->name."</th>";
	foreach($modulesAdmin as $m) {
		echo "<td>";
		if(is_array($g->droits) && isset($g->droits[$m->id]) && $g->droits[$m->id]) {
			echo "ok";
		}
		else {
			echo "NOK";
		}
		echo "</td>";
	}
}
echo "</tr>";
echo "</table>";



?>